<script setup lang="ts">
import { onMounted } from "vue";
import { Message } from "@arco-design/web-vue";
import useAppStore from "^src/pinia/stores/appStore.ts";

defineOptions({ name: "App" });

const appStore = useAppStore();

const info = (msg: string): void => {
  Message.info(msg);
};

onMounted(() => {
  info("mounted");
});
</script>

<template>
  <div>
    <a-button @click="info('click')">按钮测试</a-button>
    <a-switch v-model="appStore.dark"/>
  </div>
</template>

<style scoped>
</style>
